<div class="demo-modal aaa" class="gathering">
	<div class="modal-header">
		<h4 class="modal-title" id="modal-title">
			提交收款
			<i class="icon icon-guanbi2" ng-click="cancel()"></i>
		</h4>
	</div>
	<div class="modal-body">
		<div  class="unit-item">
			<div>
				<span class="red-star">*</span>
				收款期数
			</div>
			<div class="unititem-cont">
		        <ui-select ng-model="param.fund_plan_id">
		            <ui-option  ng-repeat="i in data.funPlanlList" value="i.id">{{i.periods}}</ui-option>
		        </ui-select>
		        <!-- {{data.funMap.periods}} -->
		   </div>
		</div>
		<div class="unit-item">
			<div class="gatheringItem-head">
				<span class="red-star">*</span>
				收款归类
			</div>
			<div class="unititem-cont">
        <ui-select ng-model="param.ps_id">
           <ui-option  ng-repeat="i in option.gatherType" value="i.id">{{i.ps_name}}</ui-option>
        </ui-select>
	    </div>
		</div>
		<div class="unit-item">
			<div class="gatheringItem-head">
				本期应收款
			</div>
			<div class="unititem-cont">
				<p>{{param.plan_payment_money | currency:'￥'}}</p>
				<p ng-if="changeEle.loaninfo">
					(收款日期：{{data.funMap.repayment_time || "--"}}，当前日期：
					<span class="red-star">{{data.newData}}</span>
					)
				</p>
		    </div>
		</div>
		<div class="unit-item">
			<div class="">
				<span class="red-star">*</span>
				实际到账总额
			</div>
			<div class="input-bind-unit unititem-cont">
        <input onkeyup="value=value.replace(/[^\d]/g,'')" ng-focus="remlight()" ng-class="{'error':err.real_payment_money}"  class="form-control" type="text" ng-model="param.real_payment_money"/>
        <span>元</span>
      </div>
			<!-- <div class="">
				<input type="text"  ng-model="param.real_payment_money" 
					ng-class="{'error':password}"
					class="form-control"/>
				<span class="span1">警告，输入的金额与本次应收金额不一致，请确定在提交</span>
			</div> -->
		</div>
		<div class="unit-item">
			<div class="">
				<span class="red-star">*</span>
				实际到账日期
			</div>
			<div class="unititem-cont">
				<ui-datepicker error-tis="err.real_time" placeholder="实际到账日期" ng-model="param.real_time"></ui-datepicker>
			</div>
		</div>
		<div class="unit-item">
			<div class="">
				<span class="red-star">*</span>
				明细
			</div>
			<div class="unititem-cont">
				<div class="loan-num" ng-if="!changeEle.benjin">
					<label><input type="checkbox" checked="checked" disabled>本金</label>
					<input type="text" class="form-control" disabled ng-model="param.is_month_repayment_money"/>元
					<!-- <span ng-if="expression">
						警告，本期应收本金是{{1200}}元
					</span> -->
				</div>
				<div class="loan-num">
				<label><input type="checkbox" checked="checked" disabled>利息</label>
					<input type="text" class="form-control" disabled ng-model="param.is_moth_repayment_rate" />元
				</div>
				<div class="loan-num"  ng-if="changeEle.penalty">
					<label><input type="checkbox" ng-checked="!checked.penalty" ng-click="interest('penalty')">违约金</label>
					<input type="text" class="form-control" ng-disabled="checked.penalty" ng-model="param.penalty"/>元
				</div>
				<div class="loan-num" ng-if="changeEle.late_fee">
					<label><input type="checkbox" ng-checked="!checked.late_fee" ng-click="interest('late_fee')">滞纳金</label>
					<input type="text" class="form-control" ng-disabled="checked.late_fee" ng-model="param.late_fee"/>元
				</div>
			</div>
		</div>
		<div>
			<div>
        <span><i class="red-star">*</i> 收款备注：</span>
        <span style="float:right;">还可以输入<span id="zishuxians">200</span> 字</span>
      </div>
      <textarea class="remark-text"
        ng-focus="remHight()"
        ng-class="{'error':err.remarksPeriods}"
        data-tag="textLength" showTag="zishuxians" maxlength="200" ng-model="param.remarksPeriods">
      </textarea>
		</div>
	</div>
	<div class="modal-footer">
		<button class="btn btn-primary" type="button" ng-click="ok()">确定提交</button>
		<!--<button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>-->
	</div>
</div>